package com.ys.zero.util;

import com.ys.zero.biz.BizException;

public class Utils {
	
	/**
	 *	判断bool是否成立,如果成立抛出业务异常 
	 */
	public static void check(boolean bool, String msg) throws BizException {
		if(bool) {
			throw new BizException(msg);
		}
	}
	
	/**
	 * 判断是否是空字符串
	 */
	public static boolean isEmpty(String string) {
		return string == null || string.trim().isEmpty();
	}

}
